<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		
	</body>
	<script type="text/javascript">
		
		function outer(){
			
			console.log(1111)
			function inner(){
				console.log(2222)
			}
			return inner;
		}
		
		var inner = outer();
		
		inner()
		
	</script>
</html>
